home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GETXTINF.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  743 b   |  30 lines

  1. /* p880.c --- bible */
  2. #include <conio.h>
  3. main()
  4. {
  5.     struct text_info t_info;
  6.     window(20, 10, 60, 20);
  7.     textbackground(RED);
  8.     textcolor(YELLOW);
  9.     clrscr();
  10. getch();
  11.     gotoxy(10, 2);
  12.     gettextinfo(&t_info);
  13.     cprintf("Text information\n\r");
  14. getch();
  15.     cprintf("Window = (%d, %d), (%d, %d)\n\r",
  16.         t_info.winleft, t_info.wintop,
  17.         t_info.winright, t_info.winbottom);
  18. getch();
  19.     cprintf("Mode = %d\n\r", t_info.currmode);
  20. getch();
  21.     cprintf("Attribute now = %d, Normal Attribute = %d\n\r",
  22.         t_info.attribute, t_info.normattr);
  23. getch();
  24.     cprintf("Screen height = %d, screen width = %d\n\r",
  25.         t_info.screenheight, t_info.screenwidth);
  26. getch();
  27.     cprintf("We started at (%d, %d)\n\r",
  28.         t_info.curx, t_info.cury);
  29. getch();
  30. }